Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: File attachments have no content when exporting room messages as file #30596

Merged
merged 4 commits into from
Oct 11, 2023

Conversation

matheusbsilva137
Copy link
Member

@matheusbsilva137 matheusbsilva137 commented Oct 6, 2023

Proposed changes (including videos or screenshots)

  • Wait for file content to be fetched and stored before zipping and sending message export (on Amazon S3, Webdav and Google Storage).

Issue(s)

Steps to test or reproduce

  1. Setup your workspace to use Amazon S3, Google Storage or Webdav as storage type;
  2. Send some file attachments (eg images) in a room;
  3. Go to the room options (three dots) > Export messages and choose the "Export as file" method. Select any time period that includes the file attachments sent.
  4. Check your e-mail and download the linked file.

Expected behavior: the attachments should be available inside the assets directory, and all of their content should be visible just as in RC.
Current behavior: all files are created and available in the assets directory, but they have no content (file sizes are all zero).

Further comments

SUP-358

@changeset-bot
Copy link

changeset-bot bot commented Oct 6, 2023

🦋 Changeset detected

Latest commit: 774b2ce

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 30 packages
Name Type
@rocket.chat/meteor Patch
@rocket.chat/core-typings Patch
@rocket.chat/rest-typings Patch
@rocket.chat/core-services Patch
@rocket.chat/cron Patch
@rocket.chat/gazzodown Patch
@rocket.chat/livechat Patch
@rocket.chat/model-typings Patch
@rocket.chat/ui-contexts Patch
@rocket.chat/account-service Patch
@rocket.chat/authorization-service Patch
@rocket.chat/ddp-streamer Patch
@rocket.chat/omnichannel-transcript Patch
@rocket.chat/presence-service Patch
@rocket.chat/queue-worker Patch
@rocket.chat/stream-hub-service Patch
@rocket.chat/api-client Patch
@rocket.chat/license Patch
@rocket.chat/omnichannel-services Patch
@rocket.chat/pdf-worker Patch
@rocket.chat/presence Patch
rocketchat-services Patch
@rocket.chat/ddp-client Patch
@rocket.chat/fuselage-ui-kit Patch
@rocket.chat/models Patch
@rocket.chat/ui-client Patch
@rocket.chat/ui-video-conf Patch
@rocket.chat/uikit-playground Patch
@rocket.chat/web-ui-registration Patch
@rocket.chat/instance-status Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov
Copy link

codecov bot commented Oct 6, 2023

Codecov Report

Merging #30596 (774b2ce) into develop (4a59798) will decrease coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #30596      +/-   ##
===========================================
- Coverage    51.28%   51.27%   -0.02%     
===========================================
  Files          811      804       -7     
  Lines        15078    15107      +29     
  Branches      2754     2768      +14     
===========================================
+ Hits          7733     7746      +13     
+ Misses        6935     6933       -2     
- Partials       410      428      +18     
Flag Coverage Δ
e2e 48.60% <ø> (+0.04%) ⬆️
unit 64.80% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@matheusbsilva137 matheusbsilva137 marked this pull request as ready for review October 9, 2023 15:52
@matheusbsilva137 matheusbsilva137 requested a review from a team as a code owner October 9, 2023 15:52
@matheusbsilva137 matheusbsilva137 added this to the 6.5.0 milestone Oct 9, 2023
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Oct 11, 2023
@dionisio-bot dionisio-bot bot added stat: ready to merge PR tested and approved waiting for merge and removed stat: ready to merge PR tested and approved waiting for merge labels Oct 11, 2023
@kodiakhq kodiakhq bot merged commit 3650ab8 into develop Oct 11, 2023
43 checks passed
@kodiakhq kodiakhq bot deleted the fix/export-messages-file branch October 11, 2023 18:01
gabriellsh added a commit that referenced this pull request Oct 16, 2023
…/mentionBot

* 'develop' of github.com:RocketChat/Rocket.Chat:
  feat: add tooltip to badge mentions (#30590)
  chore: improve `Tag` a11y link (#30636)
  refactor: Replace `useForm` in favor of RHF on `AppInstallPage` (#30634)
  fix: Improve FileProxy Handling, set Content-Type (#30427)
  refactor: `EditRoomInfo` to typescript (#28318)
  fix: mobile ringing notification missing call id (#30614)
  fix: Some HTTP requests sent by apps don't have their data parsed into JSON (#30560)
  test: More tests for groups kick (#30536)
  fix: Threads breaking after sending messages too fast (#30622)
  chore: Remove text decoration from room tag (#30606)
  i18n: Language update from LingoHub 🤖 on 2023-10-10Z (#30613)
  fix: File attachments have no content when exporting room messages as file (#30596)
  fix: use setImmediate to handle username update (#30500)
  chore: `AnalyticsReports` visual adequacy (#30617)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
squad: team-collab stat: ready to merge PR tested and approved waiting for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants